import request from '@/js/request'

export default {
	// www.fahuren.com/api/dev_fund_record/index?month=2023-05&page=&page_size=
	// 获取明细列表
	moneyDetailList: (data) => request({
		method: 'GET',
		url: '/api/dev_fund_record/index',
		data
	}),
	// www.fahuren.com/api/dev_fund_record/sum?month=2023-05
	moneyDetailSum: (data) => request({
		method: 'GET',
		url: '/api/dev_fund_record/sum',
		data
	}),
	// www.fahuren.com/api/dev_withdrawal/submitByLawyer
	// 提现
	submitByLawyerMoney: (data) => request({
		method: 'POST',
		url: '/api/dev_withdrawal/submitByLawyer',
		data
	}, {
		isToast: true,
	}),

	// 获取我的信息
	// www.fahuren.com/api/user/getLawyerInfo
	getLawyerInfo: (data) => request({
		method: 'POST',
		url: '/api/user/getLawyerInfo',
		data
	}),
	// 保存我的信息
	// www.fahuren.com/api/user/saveLawyerInfo
	saveLawyerInfo: (data) => request({
		method: 'POST',
		url: '/api/user/saveLawyerInfo',
		data
	}, {
		isToast: true
	}),

	// 律师函
	// www.fahuren.com/api/dev_order_letter/lawyerOrderList?state=&order_no=&page=&page_size=
	letterOrderList: (data) => request({
		method: 'GET',
		url: '/api/dev_order_letter/lawyerOrderList',
		data
	}),
	// 律师函提交
	// www.fahuren.com/api/dev_order_letter/lawyerSub
	letterLawyerSub: (data) => request({
		method: 'POST',
		url: '/api/dev_order_letter/lawyerSub',
		data
	}, {
		isToast: true
	}),

	// 律师函详情
	letterItemInfo: (data) => request({
		method: 'POST',
		url: '/api/dev_order_letter/detail',
		data
	}),

	// 代写诉讼
	proceedingOrderList: (data) => request({
		method: 'GET',
		url: '/api/dev_order_proceeding/lawyerOrderList',
		data
	}),
	// 诉讼提交
	proceedingLawyerSub: (data) => request({
		method: 'POST',
		url: '/api/dev_order_proceeding/lawyerSub',
		data
	}, {
		isToast: true
	}),
	proceedingDetail: (data) => request({
		method: 'POST',
		url: '/api/dev_order_proceeding/detail',
		data
	}),
	// 我的业务接口
	myLawyerBusiness: (data) => request({
		method: 'GET',
		url: '/api/dev_business_order/indexByLawyer',
		data
	}),
	// 获取聊天标识  
	getChatterId: (data) => request({
		method: 'POST',
		url: '/api/dev_order_chat/getChatterId',
		data
	}),
}